// 缴费统计
<template>
  <el-card class="box-card">
    <div class="title">
      <div class="title_box">
        <div class="title_icon"></div>
        <div class="title_value">缴费统计(元)</div>
      </div>
      <div class="title_more">
        <img src="../../assets/icons/more.png" alt="" class="more_img" />
      </div>
    </div>
    <div class="payment_detail">
      <el-row>
        <el-col :span="6">
          <div class="payment_item payment_item1">
            <div class="paymentStic_img">
              <img src="./images/day_pay.png" />
            </div>
            <div class="paymentStic_title">今日缴费</div>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="payment_item payment_item1">
            <div class="paymentStic_count">{{ info.dayTotal }}</div>
            <div class="paymentStic_title">总金额</div>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="payment_item payment_item1">
            <div class="paymentStic_count">{{ info.cardDayTotal }}</div>
            <div class="paymentStic_title">卡表</div>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="payment_item payment_item1">
            <div class="paymentStic_count">{{ info.netDayTotal }}</div>
            <div class="paymentStic_title">物联网表</div>
          </div>
        </el-col>
      </el-row>
      <el-row>
        <el-col :span="6">
          <div class="payment_item payment_item2">
            <div class="paymentStic_img">
              <img src="./images/last_pay.png" />
            </div>
            <div class="paymentStic_title">上月缴费</div>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="payment_item payment_item2">
            <div class="paymentStic_count">{{ info.monthTotal }}</div>
            <div class="paymentStic_title">总金额</div>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="payment_item payment_item2">
            <div class="paymentStic_count">{{ info.cardMonthTotal }}</div>
            <div class="paymentStic_title">卡表</div>
          </div>
        </el-col>
        <el-col :span="6">
          <div class="payment_item payment_item2">
            <div class="paymentStic_count">{{ info.netMonthTotal }}</div>
            <div class="paymentStic_title">物联网表</div>
          </div>
        </el-col>
      </el-row>
    </div>
  </el-card>
</template>
<script>
import { puchasestatisticsList } from '@/api/dashboard.js'
export default {
  data() {
    return {
      info:{
        dayTotal:0,
        cardDayTotal:0,
        netDayTotal:0,
        monthTotal:0,
        cardMonthTotal:0,
        netMonthTotal:0,
      }
    };
  },
  mounted() {
    puchasestatisticsList().then((res)=>{
      if(res.code==200){
        this.info = res.data
      }
    })
  },
  methods: {},
};
</script>
<style scoped lang="scss">
.box-card {
  margin-bottom: 10px;
}
.title {
  height: 28px;
  color: #303133;
  font-weight: 700;
  line-height: 28px;
  padding-left: 10px;
  display: flex;
  padding-left: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
  align-items: center;
  .title_box {
    width: 200px;
    display: flex;
    align-items: center;
    .title_icon {
      width: 4px;
      height: 18px;
      background-color: #d26454;
      border-radius: 4px;
      margin-right: 10px;
    }
  }

  .title_more {
    width: 24px;
    height: 28px;
    .more_img {
      display: inline-block;
      width: 24px;
      height: 28px;
    }
  }
}
.payment_detail {
  .el-row {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 110px;
  }
  .payment_item {
    .paymentStic_img {
      display: flex;
      align-items: center;
      justify-content: center;
      height: 65px;
      img {
        width: 28px;
        height: 30px;
      }
    }
    .paymentStic_count {
      height: 65px;
      line-height: 65px;
      font-size: 18px;
      font-weight: 700;
      text-align: center;
    }
    .paymentStic_title {
      font-size: 14px;
      color: #838f9e;
      text-align: center;
    }
  }
  .payment_item1 {
    .paymentStic_count {
      color: rgb(78, 179, 255);
    }
  }
  .payment_item2 {
    .paymentStic_count {
      color: rgb(255, 159, 78);
    }
  }
}
</style>
